﻿using MvvmCross.Core.ViewModels;
using MvvmCross.Platform;
using MvvmCross.Platform.IoC;
using TipCalc.core.Services;
using TipCalc.core.ViewModels;

namespace TipCalc.core
{
    public class App : MvvmCross.Core.ViewModels.MvxApplication
    {
        public App()
        {
            //向IoC注册计算小费的服务
            Mvx.RegisterType<ICalculation, Calculation>();
            //设置App的启动界面
            Mvx.RegisterSingleton<IMvxAppStart>(new MvxAppStart<TipViewModel>());
        }
    }
}
